home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / root.no / etc / rc.d / rc.M < prev    next >
Text File  |  1995-04-27  |  2KB  |  73 lines

  1. #!/bin/sh
  2. #
  3. # rc.M        This file is executed by init(8) when the system is being
  4. #        initialized for one of the "multi user" run levels (i.e.
  5. #        levels 1 through 6).  It usually does mounting of file
  6. #        systems et al.
  7. #
  8. # Version:    @(#)/etc/rc.d/rc.M    2.02    02/26/93
  9. #
  10. # Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  11. #        Heavily modified by Patrick Volkerding <volkerdi@ftp.cdrom.com>
  12. #
  13.  
  14.   # Mount the NFS filesystems
  15.   /bin/mount -at nfs
  16.  
  17.   # Tell the viewers what's going to happen...
  18.   echo "Going multiuser..."
  19.  
  20.   # Screen blanks after 15 minutes idle time.
  21.   /bin/setterm -blank 15
  22.  
  23.   # Start crond (Dillon's crond):
  24.   # If you want cron to actually log activity to /var/adm/cron, then change
  25.   # -l10 to -l8 to increase the logging level.
  26.   /usr/sbin/crond -l10 >>/var/adm/cron 2>&1
  27.  
  28.   # If there's no /etc/HOSTNAME, fall back on this default:
  29.   if [ ! -r /etc/HOSTNAME ]; then
  30.    echo "darkstar.frop.org" > /etc/HOSTNAME
  31.   fi
  32.  
  33.   # Initialize the NET subsystem.
  34.   if [ -x /etc/rc.d/rc.inet1 ];
  35.   then
  36.         /bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
  37. #        /bin/sh /etc/rc.d/rc.inet1
  38.         /bin/sh /etc/rc.d/rc.inet2
  39.   else
  40.         /sbin/hostname_notcp `cat /etc/HOSTNAME | cut -f1 -d .`
  41.     /usr/sbin/syslogd
  42.     /usr/sbin/klogd
  43.     /usr/sbin/lpd
  44.   fi
  45.  
  46.   # Remove stale locks (must be done after mount -a!)
  47.   /bin/rm -f /var/spool/locks/* /var/spool/uucp/LCK..* /tmp/.X*lock 1> /dev/null 2> /dev/null
  48.  
  49.   # Remove stale hunt sockets so the game can start.
  50.   if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then
  51.     echo "Removing your stale hunt sockets from /tmp..."
  52.     /bin/rm -f /tmp/hunt*
  53.   fi
  54.  
  55.   # Update all the shared library links automatically
  56.   /sbin/ldconfig
  57.  
  58.   # Start the sendmail daemon:
  59.   if [ -x /usr/sbin/sendmail ]; then
  60.    echo "Starting sendmail daemon (/usr/sbin/sendmail -bd -q 15m)..."
  61.    /usr/sbin/sendmail -bd -q 15m
  62.   fi
  63.  
  64.   # Load a custom screen font if the user has an rc.font script.
  65.   if [ -r /etc/rc.d/rc.font ]; then
  66.     /etc/rc.d/rc.font
  67.   fi
  68.  
  69.   # Start the local setup procedure.
  70.   /etc/rc.d/rc.local
  71.  
  72.   # All done.
  73.